package com.heima.apis.user.fallback;

import com.heima.apis.user.IChannelClient;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.stereotype.Component;

@Component
public class IChannelClientFallback implements IChannelClient {
    @Override
    public ResponseResult syncChannel(Integer wmChannelId, String wmChannelName, Boolean isDefault, Boolean status) {
        System.err.println("同步自媒体频道到用户端服务调用失败，触发降级处理机制。");

        return ResponseResult.errorResult(500, "同步自媒体频道到用户端服务调用失败，触发降级处理机制。");
    }
}
